﻿using Server.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Server.Logic
{
	[ServiceContract]
	public interface IUserMgt
	{
		[OperationContract]
		void Login(string username, string password);

		[OperationContract]
		User GetInfo(string username);

		void Update(User user);

		void Remove(User user);

		IEnumerable<User> Search(string keyword, Pagination pagi)

		[OperationContract]
		void Logout();
	}
}
